package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Great;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface IGreatService {

    void deleteByPrimaryKey(Long id);

    void insert(Great record);

    Great selectByPrimaryKey(Long id);

    List<Great> selectAll();

    void updateByPrimaryKey(Great record);

    Integer getCountByTravelContentId(Long travelContentId);

    Great selectByUserIdAndTravelContentId(Long travelContentId, Long userId);

    void deleteRelation(Long travelContentId, Long userId);

    List getGoodsContent(Long userId);

    void insertDeleteRelation(Long travelContentId, Long userId);

    List<Map> getDeleteGoods(Long userId);

    int getDeleteCount(Long userId);

    int getGoodCount(Long userId);

    void updateDeleteStateById(Long userId);

    void updateGoodsStateById(Long userId);
}
